<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>添加模块</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	  <link rel="stylesheet" href="../css/addModule.css" />

	  <script type="text/javascript">
		  function checkValue() {
			  var value=document.getElementById("inputValue").value;
			  if(value.match(/^\s*$/)){
			      alert("请填写完整");
			  }else {
                  var forms = document.getElementById("form1");
                  forms.submit();
			  }
          }
	  </script>
  </head>
  
  <body>
  <div id="add-tab">
	  <p class="adds">添加模块</p>
	  <form id="form1" action="addModule" method="post">
		  <table class="tabs">
			  <tr>
				  <th width="60px">模块名称</th>
				  <th width="100px">模块里的内容</th>
				<%--  <th width="100px">模块创建人</th>--%>
				  <%--<th width="100px">当前添加时间</th>--%>
				  <th width="140px">操作</th>
			  </tr>

			  <tr>
				  <td>
					  <select name="typeName">
						  <option>项目进度</option>
						  <option>项目组</option>
						  <option>工作类别</option>
						  <option>类型</option>
						  <option>严重度</option>
						  <option>业务状态</option>
						  <option>业务类别</option>
						  <option>销售负责人</option>
					  </select>
				  </td>
				  <td><input id="inputValue" type="text" name="paramValue"/></td>
				<%--  <td><input type="text" name="adduser"/></td>--%>
				<%--  <td><input type="text" id="today" name="updateTime" placeholder="时间格式：2018/5/22" disabled/></td>--%>
				  <td ><input type="button" onclick="javaScript:checkValue()" value="提交&返回" id="sub"/> &nbsp;
					  <a href="findParams">取消</a>
				  </td>
			  </tr>

		  </table>
	  </form>
  </div>

  </body>
</html>
